package com.fjwt.gz.task.util;

import cn.hutool.core.date.DateField;
import cn.hutool.core.date.DateTime;

public class SysDateUtil {

    /**获取当前时间的凌晨零点的时间，如:2023-01-04 00:00:00**/
    public static DateTime getToday(DateTime todayStart){
        todayStart.setField(DateField.HOUR_OF_DAY, 0);
        todayStart.setField(DateField.MINUTE, 0);
        todayStart.setField(DateField.MILLISECOND, 0);
        todayStart.setField(DateField.SECOND, 0);
        return todayStart;
    }

}
